﻿<%@ Page Language="C#" MasterPageFile="~/GoWLL.master" AutoEventWireup="true" CodeFile="CommunityList.aspx.cs" Inherits="CommunityList" Title="社区大全 - 我的社区 G维网" %>
<%@ Register Src="CommunityMenu.ascx" TagName="CommunityMenu" TagPrefix="Menu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceMenu" Runat="Server">
    <Menu:CommunityMenu ID="CommunityMenu1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMainText" Runat="Server">
    <div id="contenttext">
        <div class="panel" align="justify">
            <form id="Form1" runat=server>
            <span class="orangetitle">社区大全</span>&nbsp;<br />
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GoWLLConnectionString %>"></asp:SqlDataSource>
                <asp:Label ID="Label3" runat="server" Visible="False"></asp:Label>
                <table>
                    <tr>
                        <td valign="top" style="font-size:13px;padding:3px;" align="right">
                            <div style="border:1px solid #EEAA66;padding:2px;">
                            <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">上一页</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click">下一页</asp:LinkButton>
                            </div>
                            </td>
                        <td align="center" valign="top" width="230">
                            <asp:Label ID="Label1" runat="server" Text="点击社区预览" Font-Bold="True" Font-Size="16px" ForeColor="#FF8000"></asp:Label></td>
                    </tr>
                    <tr>
                        <td align="center" valign="top">
                             <asp:DataList ID="DataList1" runat="server" CellPadding="3" BorderWidth="1px" BorderColor="#EEAA66" 
                                 ForeColor="#333333" RepeatColumns="6" RepeatDirection="Horizontal" ShowFooter="False" ShowHeader="False" CellSpacing="1">
                                 <AlternatingItemStyle BackColor="White" Width="50px" HorizontalAlign="Center"/>
                                 <ItemStyle Width="50px" HorizontalAlign="Center" BackColor="#EEFFDD"/>
                                 <ItemTemplate>
                                     <asp:LinkButton ID="LinkButton1" runat="server" CommandName='<%# Eval("ID") %>' OnClick="LinkButton1_Click" Font-Size="11px"><%# Eval("Title") %></asp:LinkButton>
                                 </ItemTemplate>
                             </asp:DataList>
                        <br />
                            申请新社区：<asp:TextBox ID="TextBox1" runat="server" Width="60px"></asp:TextBox>&nbsp;
                            <asp:Button ID="Button2" runat="server" Text=" 提 交 " OnClick="Button2_Click" /><br />
                            &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1"
                                Display="Dynamic" ErrorMessage="社区名称为2-4个字或字符" ValidationExpression="[a-zA-Z\u0100-\uFFFF]{2,4}"></asp:RegularExpressionValidator></td>
                        <td align="center" valign="top" width="230">
                            <asp:DataList ID="DataList2" runat="server" ShowFooter="False" ShowHeader="False">
                                <ItemTemplate>
                                    <iframe width="210" height="340" marginwidth="0" marginheight="5" scrolling="no" frameborder="0" src="<%# "http://wml.51tone.com/gowll2.htm?"+Eval("url") %>"></iframe></td>
                                </ItemTemplate>
                            </asp:DataList>
                            <asp:Label ID="Label2" runat="server" Text="" Font-Bold="True" Font-Size="16px" ForeColor="Olive"></asp:Label>
                            <br />
                            <asp:ImageButton ID="Button1" runat="server" ImageUrl="images/addto.gif" OnClick="Button1_Click" Visible="False" />
                            <br /><a href="CommunityOrder.aspx"><img src="images/shopcar.gif" border="0" /></a>
                            </td>
                    </tr>
                 </table>
            </form>
            </div>
    </div>

</asp:Content>

